#
# Be sure to run `pod lib lint SLCategoryKit.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
    s.name             = 'SLCategoryKit'
    s.version          = '0.7.0'
    s.summary          = '封装了常用控件的分类库。'
    
    # This description is used to generate tags and improve search results.
    #   * Think: What does it do? Why did you write it? What is the focus?
    #   * Try to keep it short, snappy and to the point.
    #   * Write the description between the DESC delimiters below.
    #   * Finally, don't worry about the indent, CocoaPods strips it!
    
    s.description      = <<-DESC
    封装了BarButtonItem、Calendar、UIView、Image、ImageView、TextField、Window、Color、Date、String分类。
    DESC
    
    s.homepage         = 'https://gitee.com/AnthonyCoder/SLCategoryKit'
    # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
    s.license          = { :type => 'MIT', :file => 'LICENSE' }
    s.author           = { 'CoderSLZeng' => '359297567@qq.com' }
    s.source           = { :git => 'https://gitee.com/AnthonyCoder/SLCategoryKit.git', :tag => s.version.to_s }
    # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
    
    s.ios.deployment_target = '8.0'
    
    # s.source_files = 'SLCategoryKit/Classes/**/*'
    
    #s.resource_bundles = {
    #   'SLCategoryKit' => ['SLCategoryKit/Assets/*.png']
    # }
    
    # Subspec
    s.subspec 'BarButtonItem' do |barButtonItem|
        barButtonItem.source_files = 'SLCategoryKit/Classes/BarButtonItem/*.{h,m}'
    end
    
    s.subspec 'Calendar' do |calendar|
        calendar.source_files = 'SLCategoryKit/Classes/Calendar/*.{h,m}'
    end
    
    s.subspec 'View' do |view|
        view.source_files = 'SLCategoryKit/Classes/View/*.{h,m}'
    end
    
    s.subspec 'Image' do |image|
        image.source_files = 'SLCategoryKit/Classes/Image/*.{h,m}'
    end
    
    s.subspec 'ImageView' do |imageView|
        imageView.source_files = 'SLCategoryKit/Classes/ImageView/*.{h,m}'
        imageView.dependency 'SDWebImage'
        imageView.dependency 'AFNetworking/Reachability'
    end
    
    s.subspec 'TextField' do |textField|
        textField.source_files = 'SLCategoryKit/Classes/TextField/*.{h,m}'
        
        textField.resource_bundles = {
            'SLCategoryKit' => ['SLCategoryKit/Assets/TextField/*']
        }
    end
    
    s.subspec 'Window' do |window|
        window.source_files = 'SLCategoryKit/Classes/Window/*.{h,m}'
    end
    
    s.subspec 'Color' do |color|
        color.source_files = 'SLCategoryKit/Classes/Color/*.{h,m}'
    end
    
    s.subspec 'Date' do |date|
        date.source_files = 'SLCategoryKit/Classes/Date/*.{h,m}'
    end
    
    s.subspec 'String' do |string|
        string.source_files = 'SLCategoryKit/Classes/String/*.{h,m}'
    end
    
    s.subspec 'Button' do |button|
        button.source_files = 'SLCategoryKit/Classes/Button/*.{h,m}'
    end
    
    s.subspec 'Fondation' do |fondation|
        fondation.source_files = 'SLCategoryKit/Classes/Fondation/*.{h,m}'
    end
    
    # s.public_header_files = 'Pod/Classes/**/*.h'
    # s.frameworks = 'UIKit', 'MapKit'
    # s.dependency 'AFNetworking', '~> 2.3'
end
